package com.zyf.threadsOffer;

public class ManyThreads {
	private int j = 0;

	public synchronized void inc() {
		j++;
		System.out.println(Thread.currentThread().getName() + "inc" + j);
	}

	public synchronized void dec() {
		j--;
		System.out.println(Thread.currentThread().getName() + "dec" + j);
	}
}
